package cn.juque.systemservice.mapper;

import cn.juque.systemservice.domain.RoleFuncRelationDO;
import cn.juque.systemservice.entity.RoleFuncRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>操作权限</li>
 * </ul>
 * @date 2022-11-20 22:17:11
 **/
@Mapper
public interface RoleFuncRelationMapper extends BaseMapper<RoleFuncRelation> {

    /**
     * 分页查询
     *
     * @param page             : page
     * @param roleFuncRelation : roleFuncRelation
     * @return List<RoleFuncRelation>
     */
    List<RoleFuncRelationDO> queryFuncRelationList(Page<RoleFuncRelationDO> page, @Param("ew") RoleFuncRelationDO roleFuncRelation);

    /**
     * 查询
     *
     * @param roleFuncRelation : roleFuncRelation
     * @return List<RoleFuncRelation>
     */
    List<RoleFuncRelationDO> queryFuncRelationList(@Param("ew") RoleFuncRelationDO roleFuncRelation);
}
